package event;

import java.awt.Graphics;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.Painter;

public class Bollmove  extends JFrame{
    private MyPanel mp = null;
    public static void main(String[] args) {
         Bollmove bollmove = new Bollmove();
    }
    public Bollmove(){
        mp=new MyPanel();
        this.add(mp);
        this.setSize(400,400);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);

    }
}
//面板
class MyPanel extends JPanel implements KeyListener{
    @Override
    public void paint(Graphics g) {
        // TODO Auto-generated method stub
        super.paint(g);
        g.fillOval(10, 10,20, 20);
    }
    @Override 
    public void keyTyped(Keytyped e)
}
